package com.to;

import java.lang.reflect.Constructor;
import java.lang.reflect.Field;


public class Test {

	/**
	 * @param args
	 */
	@SuppressWarnings("rawtypes")
	public static void main(String[] args) {
		Constructor c[] = TestTo.class.getDeclaredConstructors();
		
		c[0].setAccessible(true);
		try {
		
			TestTo to1 = (TestTo) c[0].newInstance("swastik");
			
			
			
			to1.changeField("userId", 84);
		    //System.out.println("direct: wrappedInt = " + to1.getUserId());

			
			
			
			System.out.println(to1.getName() + "****"+to1.getUserId());
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} 

	}
	
	


}
